// export const dev_host = 'https://app.horsemt.com'; // 开发环境域名
export const dev_host = 'https://localelife.chunchuangkeji.cn'; // 开发环境域名
export const mock_host = ''; 
// export const product_host = 'http://47.120.73.236:20000'; // 生产环境域名
export const product_host = 'https://localelife.chunchuangkeji.cn'; // 生产环境域名

// const host = 'http://192.168.7.9:8003' // 114.55.254.202
export const WEBSOCKET = 'ws://47.120.73.236:32331/'; // socket 地址
export const IMGSOURCE = host; // 分享的H5地址


export const IS_DEV = 1 // // 0:生产环境 1:开发环境 2:mock环境

const host = IS_DEV == 2 ? mock_host : IS_DEV == 1 ? dev_host : product_host; // 项目中接口地址host

export const PAGE_SIZE = 15 // 分页配置 每页条数

export const BASE_URL = `${host}` // 基础路径
export const API_BASE_URL = `${host}/api` // 接口请求基础路径
export const UPLOAD_IMAGE_URL = `${host}/api/v1/5d5fa8984f0c2` // 图片上传接口路径 UploadImage方法依赖此配置
export const UPLOAD_VIDEO_URL = `${host}/api/v1/5fc615f7da92b` // 视频上传上传接口路径

export const IMG_BASE_URL = `${host}/upload/` // 图片基础路径 公共filters assembleImgSrc依赖此配置
    // #ifdef APP-PLUS || H5
export const LOGIN_PAGE_URL = '/pages/user/login/login-password/index' // 登录页面路由 request.js 依赖此配置 主要用于登录失效跳转
    // #endif
    // #ifdef MP-WEIXIN
export const LOGIN_PAGE_URL = '/pages/user/login/auth-login/index' // 登录页面路由 request.js 依赖此配置 主要用于登录失效跳转
    // #endif

const _platform = uni.getSystemInfoSync().platform;
export const SYSTEM_CONFIG = { // 系统配置
    logo: '/static/logo.png',
    appName: '商家工具',
    appVersion: '1.0.6',
    // #ifdef APP-PLUS
    platform: _platform === 'android' ? 'Android' : 'IOS',
    // #endif
    // #ifdef H5
    platform: 'Web',
    // #endif
    // #ifdef MP-WEIXIN
    platform: 'Wechat',
    // #endif
    // #ifdef MP-ALIPAY
    platform: 'Alipay',
    // #endif
    // #ifdef MP-BAIDU
    platform: 'Baidu',
    // #endif
    // #ifdef MP-TOUTIAO
    platform: 'ByteBounce',
    // #endif
    // #ifdef MP-360
    platform: '360',
    // #endif
    // #ifdef QUICKAPP-WEBVIEW
    platform: 'FastApp',
    // #endif
}

export const needLoginPages = [
    "/pages/user/address/address-list/index",
    "/pages/user/address/address-add/index",
    "/pages/index/setting/change-pay-password/index",
    "/pages/index/setting/reset-pay-password/index",
    "/pages/index/setting/change-password/index",
    "/pages/service-mssage/message/message-list/index",
    "/pages/user/user/info/index",
    "/pages/user/user/avatar-cropping/index",
    "/pages/index/setting/feedback/index",
    "/pages/index/setting/my-feedback/index",
    "/pages/index/setting/verify-oldphone/index",
    "/pages/index/setting/change-newphone/index",
    "/pages/user/wallet/my-wallet/index",
    "/pages/user/wallet/consumer-detail/index",
    "/pages/user/wallet/recharge/index",
    "/pages/user/wallet/recharge-log/index",
    "/pages/user/wallet/withdraw/index",
    "/pages/user/wallet/withdraw-success/index",
    "/pages/user/wallet/account-bind/index",
    "/pages/user/wallet/alipay-bind/index",
    "/pages/user/wallet/wechat-bind/index",
    "/pages/user/user/my-favorites/index",
    "/pages/user/user/my-footprint/index",
    "/pages/order/afterorder/afterorder-apply/index",
    "/pages/order/afterorder/afterorder-status-list/index",
    "/pages/order/afterorder/afterorder-detail/index",
    "/pages/order/afterorder/afterorder-sendback/index",
    "/pages/order/order-process/confirm-order/index",
    "/pages/order/order-process/pay-order/index",
    "/pages/order/order-process/pay-success/index",
    "/pages/order/order-process/choos_coupon/index",
    "/pages/order/order-list/all-order/index",
    "/pages/order/orderdetail/order-detail/index",
    "/pages/order/orderdetail/express-delivery/index",
    "/pages/order/evaluation/order-evaluation/index",
    "/pages/news/article/article-favoriters/index"
]